@extends('layouts.master')
@section('headStyle')
 @include("widgets.datatables-style")
@endsection


@section('content')
<!-- page content -->
        <div class="right_col" role="main">
            <div>
                <div class="page-title">
                    <div class="title_left">
                        <h3>会员管理</h3>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>检索条件</h2>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <form id="search-form" class="form-horizontal form-label-left">

                                    <div class="form-group">
                                        <div class="col-md-4 col-sm-4 ">
                                            <label class="col-md-3 col-sm-4 control-label">用户ID：</label>
                                            <div class="col-md-9 col-sm-8 ">
                                                <input type="text" class="form-control" name="user_id">
                                            </div>
                                        </div>
                                        <div class="col-md-4 col-sm-4 ">
                                            <label class="col-md-3 col-sm-4  control-label">昵称：</label>
                                            <div class="col-md-9 col-sm-8 ">
                                                <input type="text" class="form-control" name="user_name">
                                            </div>
                                        </div>
                                        <div class="col-md-4 col-sm-4 ">
                                            <label class="col-md-3 col-sm-4  control-label">手机号：</label>
                                            <div class="col-md-9 col-sm-8 ">
                                                <input type="text" class="form-control" name="mobile">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-md-4 col-sm-4"></div>
                                        <div class="col-md-4 col-sm-4"></div>
                                        <div class="col-md-4 col-sm-4 form-search-btn form-search-btn-right">
                                            <button type="button" class="btn btn-primary" id="search-btn">&nbsp;搜&nbsp;索&nbsp;</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12 col-sm-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>会员列表
                                </h2>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <table id="data-table" class="table table-bordered table-striped table-hover cell-border text-center">
                                    <thead>
                                    <tr>
                                        <th class="text-center">用户ID</th>
                                        <th class="text-center">登录名</th>
                                        <th class="text-center">昵称</th>
                                        <th class="text-center">E-mail</th>
                                        <th class="text-center">手机号</th>
                                        <th class="text-center">注册日期</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- /page content -->
@endsection


@section('bottomScript')

@include("widgets.datatables-script")


<script type="text/javascript">
    $(function(){
        var table = $('#data-table').dataTableHelper({
            url:'users',
            searchBtnId:'search-btn',
            ordering :false,
            /*rows:1,*/
            columns: [
                {data: 'user_id'},
                {data: 'login_name'},
                {data: 'user_name',className: 'text-left'},
                {data: 'email',className: 'text-left'},
                {data: 'mobile',className: 'text-left'},
                {data: 'register_time',className: 'text-center'},
            ],

        });
    });
</script>
@endsection